<head>
    <title>Inversiones Seguras</title>
    <meta charset="UTF-8">
    <!--Codigo necesario para utilizar los objetos del kickstart-->
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <meta name="description" content="" />
    <meta name="copyright" content="Dioni Corporation All Rights Reserved" />
    <link rel="stylesheet" type="text/css" href="css/kickstart.css" media="all" />                  <!-- KICKSTART -->
    <link rel="stylesheet" type="text/css" href="style.css" media="all" />                          <!-- CUSTOM STYLES -->

<!--<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> -->
    <script type="text/javascript" src="js/jquery-2.0.0.min.js"></script>  
    <script type="text/javascript" src="js/kickstart.js"></script>                                  <!-- KICKSTART -->

    <script type="text/javascript" src="js/jquery.js"></script>



    <!--Fin Codigo necesario para utilizar los objetos del kickstart-->

    <!--Codigo para las tablas ordenadas y con busqueda-->
    <meta name="viewport"
          content="width = device-width, initial-scale = 1.0, minimum-scale = 1.0, maximum-scale = 1.0, user-scalable = no"/>
    <link href="css/bootstrap.css" rel="stylesheet" type="text/css"/>
    <link href="css/footable.core.css?v=2-0-1" rel="stylesheet" type="text/css"/>

    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" type="text/javascript"></script>
    <script>
        if (!window.jQuery) {
            document.write('<script src="js/jquery-1.9.1.min.js"><\/script>');
        }
    </script>

    <script src="js/footable.js?v=2-0-1" type="text/javascript"></script>
    <script src="js/footable.sort.js?v=2-0-1" type="text/javascript"></script>
    <script src="js/footable.filter.js?v=2-0-1" type="text/javascript"></script>
    <script src="js/footable.paginate.js?v=2-0-1" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $('table').footable().bind({
                'footable_filtering': function (e) {
                    var selected = $('.filter-status').find(':selected').text();
                    if (selected && selected.length > 0) {
                        e.filter += (e.filter && e.filter.length > 0) ? ' ' + selected : selected;
                        e.clear = !e.filter;
                    }
                },
                'footable_filtered': function() {
                    var count = $('table.demo tbody tr:not(.footable-filtered)').length;
                    $('.row-count').html(count + ' rows found');
                }
            });

            $('.clear-filter').click(function (e) {
                e.preventDefault();
                $('.filter-status').val('');
                $('table.demo').trigger('footable_clear_filter');
                $('.row-count').html('');
            });

            $('.filter-status').change(function (e) {
                e.preventDefault();
                $('table.demo').data('footable-filter').filter( $('#filter').val() );
            });
        
            $('.datepicker').pickadate({
                min: new Date(2013,3,20),
                max: new Date(new Date())
            });
            /*$('#demo').mobiscroll().calendar({
        theme: 'ios7',
        lang: 'es',
        display: 'bottom',
        controls: ['calendar']
    }); */   
            $('#show').click(function(){
                $('#demo').mobiscroll('show'); 
                return false;
            });
            $('#clear').click(function () {
                $('#demo').val('');
                return false;
            });

    

        });
    </script>
    <!--Fin Codigo para las tablas ordenadas y con busqueda-->

    <!--Codigo para la configuracion de los datepicker-->
    <link rel="stylesheet" href="css/default.css">
    <link rel="stylesheet" href="css/default.date.css">

<!--<script src="js/jquery.1.9.1.min.js"></script>-->
    <script src="js/picker.js"></script>
    <script src="js/picker.date.js"></script>
    <script src="js/legacy.js"></script>

    <script type="text/javascript">

        var $input = $( /*'.date'*/ '.datepicker' ).pickadate({
            // container: '.outlet',
            disable: [ 1, 2, 7, [2013,6,1] ],
            selectYears: true,
            selectMonths: true,
            format: 'dd mmmm yyyy',
            formatSubmit: 'dd-mm-yyyy'
            // hiddenSuffix: '-submit',
            // clear: '',
            // min: +2,
            // max: +30,
            // format: 'mmmm dd, yyyy',
        })

        var picker = $input.pickadate('picker')

    </script>
    <!--Fin codigo de para los datepicker-->

    <!--Script para los rangos-->
    <script src="js/html5slider.js"></script>
    <!--Fin Script para los rangos-->

    <!--Botones para estito Iphone check y radio buttons-->
    <link rel="stylesheet" href="css/iphoneBotones.css">
    <!--Fin Botones para estito Iphone check y radio buttons-->

    <!--Estilo para los mensajes al usuario-->
    <link type="text/css" href="css/jquery.message.css" rel="stylesheet" media="screen"/>
    <script type="text/javascript" language="javascript" src="js/jquery.message.js"></script>
    <!-- Fin Estilo para los mensajes al usuario-->

    <script type="text/javascript">
        //Busca un parametro del url y devuelve el valor
        //el uso es asi: var dia = getParam('dia'); donde dia es un parametro ?dia=L
        function getParam( name )
        {
            name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
            var regexS = "[\\?&]"+name+"=([^&#]*)";
            var regex = new RegExp( regexS );
            var results = regex.exec( window.location.href );
            if( results == null )
                return "";
            else
                return results[1];
        }
    
        // Realiza y devuelve el valor del dia de la semana de hoy.
        function returnDay()
        {       
        
            var d = new Date();
            var numDia = d.getDay();
            var dia = "";
        
            switch(numDia)
            {
                case 0: dia= "D"; break;
                case 1: dia= "L"; break;
                case 2: dia= "K"; break;
                case 3: dia= "M"; break;
                case 4: dia= "J"; break;
                case 5: dia= "V"; break;
                case 6: dia= "S"; break;
            
            }
        
            return dia;
        
        
        }
    
        // Codigo para calcular la hora exacta
    
        function CalcHour(){
            
            var Digital=new Date()
            var hours=Digital.getHours()
            var minutes=Digital.getMinutes()
            var seconds=Digital.getSeconds()
            var dn="AM" 
            if (hours>12){
                dn="PM"
                hours=hours-12
            }
            if (hours==0)
                hours=12
            if (hours<=9)
                hours="0"+hours
            if (minutes<=9)
                minutes="0"+minutes
            if (seconds<=9)
                seconds="0"+seconds
            //change font size here to your desire
            myclock=hours+":"+minutes + " " + dn;//+":" +seconds+" "+dn;
            
            return myclock;
            //setTimeout("CalcHour()",1000)
        }
        
        function CalcFecha(){
            
            var Digital=new Date();
            var day= Digital.getDate();
            var month=Digital.getMonth()+1;//Enero es 0
            var year=Digital.getFullYear();
            
            if (day<=9)
                day="0"+day
            if (month<=9)
                month="0"+month
            
            //change font size here to your desire
            myclock=day+"/"+month + "/" + year;//+":" +seconds+" "+dn;
            
            return myclock;
            //setTimeout("CalcHour()",1000)
        }
    
    //ObtenerNombre()
       function obtener_Nombre()
    {       
        
        var accion='obtenerNombre';
        $.get("controladores/ajaxControlador.php",{accion:accion},function(resultado){
            if(resultado == false)
            {
                alert("Error");
            }
            else
            {  
                $('#cliente').val(resultado);//.append(resultado);
            }
        });
    }
    
    //ObtenerNombre()
       function obtener_TipoPrecio()
    {       
        
        var accion='obtenerTipoPrecio';
        $.get("controladores/ajaxControlador.php",{accion:accion},function(resultado){
            if(resultado == false)
            {
                alert("Error");
            }
            else
            {  
                $('#hddTipoPrecio').val(resultado);//.append(resultado);
            }
        });
    }
    </script>
    
    
    <!-- Magnific Popup core CSS file -->
<link rel="stylesheet" href="css/magnific-popup/magnific-popup.css"> 

<!-- jQuery 1.7.2+ or Zepto.js 1.0+ -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> 

<!-- Magnific Popup core JS file -->
<script src="js/magnific-popup/jquery.magnific-popup.js"></script> 
    <!--Fin Magnific Popup core CSS file-->
    
</head>
